<div id="content">       

    <? if(is_array($response)){?>
    <div class="response">
        <span class="<?=$response["class"]?>"><?=$response["msg"]?></span>
    </div>
    <?}?>

    <div class="float_block_right">
        <a href="<?=site_url('admin/applications/add')?>" class="button">ADD NEW APPLICATION</a>
    </div>

    <h1>Product applications</h1>

    <div class="live_search_msg"></div>

    <div id="list_container" class="content_block" style="width:100%; overflow:auto;"> 
    <? foreach($list as $item){?>

        <div class="list_block search <?=($item["Active_Applications"]=='1') ? 'active' : 'inactive'?>">

            <a href="<?=site_url('admin/applications/preview/'.$item['id_Applications'])?>" class="title" rel="view"><?=$item['Name_Applications']?></a>                
                                    
            <div class="buttons_block">
                <a href="<?=site_url('admin/applications/edit/'.$item['id_Applications'])?>" class="button">edit</a>       
                <? if ($item['Active_Applications'] == 1){ ?>
                <a href="<?=site_url('admin/applications/deactivate/'.$item['id_Applications'])?>" class="button">deactivate</a>
                <? } else { ?> 
                <a href="<?=site_url('admin/applications/activate/'.$item['id_Applications'])?>" class="button">activate</a>
                <? } ?> 
                <a href="<?=site_url('admin/applications/remove/'.$item['id_Applications'])?>" class="button">delete</a>   
            </div>

        </div>   

    <? } ?>
    </div>

</div>